<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<style type="text/css">
.dateWidth1{
   width:195px;
}
.select_width{
   width:130px;
}
</style>
<x:parse xml="${param.xmlstr}" var="xmlData" />
<input type="hidden" name="organizations/organization[0]/sequence_no" value="1" >
<input type="hidden" name="organizations/organization[0]@submit_org" value="1" >
<input type="hidden" name="organizations/organization[0]/org_code" value="<x:out select="$xmlData/data/organizations/organization[@submit_org=1]/org_code"/>" >
<table class="t_css" width="100%" border="0" cellpadding="0" id="basicInfo_0" cellspacing="1">
	<tr>
		<td   colspan="6" class="t_bar2">基本信息</td>
	</tr>
	<tr>
	    <td align="right" width="13%">技术领域：</td>
	    <td colspan="5"  width="87%">
		<x:out select="$xmlData/data/proposal/technology_name" />
	    </td>
	</tr>
	<tr>
	<td align="right">归口管理部门：</td>
		<td colspan="5">
			<x:out select="$xmlData/data/proposal/recomend_org_name" />
		</td>
	</tr>
	<tr>
	    <td  align="right">填报日期：</td>
		<td colspan="5">
			<x:out select="$xmlData/data/proposal/submit_date" />
		</td>
	</tr>
	</table>
<table class="t_css" width="100%" border="0" cellpadding="0" id="basicInfo_1" cellspacing="1">
	<tr>
		<td   colspan="6" class="t_bar2">推荐人选情况</td>
	</tr>
	<tr>
		<td align="right" width="13%">姓名：
		<input type="hidden" id="submit_psn" name="zh_persons/zh_person[00]@submit_psn" value="1" />
	    <input type="hidden" name="zh_persons/zh_person[00]/basic_info/psn_code" value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/psn_code" />"/></td>
		<td width="18%">&nbsp;<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/zh_name" /></td>
		<td align="right" width="13%">性  别：</td>
		<td width="20%">
		<c:set var="gender"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/gender_value" /></c:set>
		<c:if test="${gender == 'M' }">男</c:if>
		<c:if test="${gender == 'F' }">女</c:if>
		<span name="zh_persons/zh_person[00]/basic_info/gender_value" style="display: none;"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/gender_value" /></span>
		</td>
		<td align="right" width="15%">国  籍：</td>
		<td width="21%">&nbsp;
		<x:out select="$xmlData/data/persons/region_name" />
		</td>
	</tr>
	<tr>
		<td align="right" >民  族：</td>
		<td >&nbsp;<span name="zh_persons/zh_person[00]/basic_info/ethnicity_name"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/ethnicity_name" /></span>
		<span name="zh_persons/zh_person[00]/basic_info/ethnicity_value" style="display: none;"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/ethnicity_value" /></span></td>
		<td align="right" >出生日期：</td>
		<td >
		<span name="zh_persons/zh_person[00]/basic_info/birthday" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/birthday" /></span>
		</td>
		<td align="right" >学历：</td>
		<td >&nbsp;<span name="zh_persons/zh_person[00]/basic_info/educate_name"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/educate_name" /></span>
		<span name="zh_persons/zh_person[00]/basic_info/educate_value" style="display: none;"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/educate_value" /></span></td>
	</tr>
	<tr>
		<td align="right" >证件类型：</td>
		<td >&nbsp;<span name="zh_persons/zh_person[00]/basic_info/card_type_name"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/card_type_name" /></span>
		<span name="zh_persons/zh_person[00]/basic_info/card_type_value" style="display: none;"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/card_type_value" /></span></td>
		<td align="right" >证件号码：</td>
		<td colspan="3">
		<span name="zh_persons/zh_person[00]/basic_info/card_code" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/card_code" /></span>
		</td>
	</tr>
	<tr>
		<td align="right" >职  务：</td>
		<td >&nbsp;<span name="zh_persons/zh_person[00]/basic_info/position"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/position" /></span></td>
		<td align="right" >专业技术职务：</td>
		<td >
		<span name="zh_persons/zh_person[00]/basic_info/prof_title_name" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/prof_title_name" /></span>
		</td>
		<td align="right">推荐人选是否为创业项目的技术所有者：</td>
	    <td >
		<x:out select="$xmlData/data/proposal/technology_own_name" />
	    </td>
	</tr>
	<tr>
		<td align="right" >电话：</td>
		<td >&nbsp;<span name="zh_persons/zh_person[00]/contact/tel_work"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/tel_work" /></span></td>
		<td align="right" >传真：</td>
		<td >
		<x:out select="$xmlData/data/persons/fax" />
		</td>
		<td align="right" >手  机：</td>
		<td >&nbsp;<span name="zh_persons/zh_person[00]/contact/mobile"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/mobile" /></span></td>
	</tr>
	<tr>
		<td align="right" >电子邮箱：</td>
		<td >&nbsp;<span name="zh_persons/zh_person[00]/contact/email"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/email" /></span></td>
		<td align="right" >通讯地址：</td>
		<td >
		<span name="zh_persons/zh_person[00]/basic_info/address"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/address" /></span>
		</td>
		<td align="right" >邮 编：</td>
		<td >&nbsp;
		<x:out select="$xmlData/data/persons/post_code" />
		</td>
	</tr>
	<tr>
	    <td align="right">推荐人选类型：</td>
	    <td colspan="5">
	    <x:out select="$xmlData/data/proposal/tjrx_type_name" />
	    <c:set var="tjrx_type_value"><x:out select="$xmlData/data/proposal/tjrx_type_value" /></c:set>
	    <c:if test="${tjrx_type_value == '05' }">：<x:out select="$xmlData/data/proposal/tjrx_type_other" /></c:if>
	    </td>
	</tr>
	
</table>
<div class="t_bar">学习经历</div>
	<table  id="tblLearn" cellpadding="0" class="table01 t_css" width="100%" border="0" cellpadding="0" style="*border-bottom: #a1c0dc 1px solid;">
			<thead >
					<tr style="border:1px solid #B7D1E6">
						<th class="TblHead" align="center"  width="5%">序号</th>
						<th class="TblHead" align="center"  width="12%">国家</th> 
						<th class="TblHead" align="center"  width="13%">院校</th>
						<th class="TblHead" align="center"  width="13%">专业</th> 
						<th class="TblHead" align="center"  width="13%">学历</th> 
						<th class="TblHead" align="center"  width="13%">学位</th>
						<th class="TblHead" align="center"  width="13%">起始时间</th> 
						<th class="TblHead" align="center"  width="13%">结束时间</th> 
					</tr>
			</thead>
			<tbody id="tab">
					<c:set value="0" var="index" scope="page"/>
					<x:forEach select="$xmlData/data/learns/learn" var="learn">
					
					<c:choose>
						<c:when test="${index<10}" ><c:set value="0" var="flag" scope="page"/></c:when>
						<c:otherwise><c:set value="" var="flag" scope="page"/></c:otherwise>
					</c:choose>
					<tr >
						<td align="center">
							<span   name="learns/learn[${flag}${index}]@seq_no" ><x:out select="$learn/@seq_no"/></span> 
						</td>
						<td align="center">
							<x:out select="$learn/country"/>
						</td>
						<td align="center">
							<x:out select="$learn/academy"/>
						</td>
						<td align="center">
							<x:out select="$learn/major"/>
						</td>
						<td align="center">
						    <x:out select="$learn/educate_name" />
						</td>
						<td align="center">
						    <x:out select="$learn/degree_name" />
						</td>
						<td align="center">
							<x:out select="$learn/start_date_value"/>年<x:out select="$learn/start_date_month_value"/>月</td> 
						<td align="center">
							<x:out select="$learn/end_date_value"/>年<x:out select="$learn/end_date_month_value"/>月
						</td>
					</tr>
					<c:set value="${index+1}" var="index" scope="page"/>
					</x:forEach>
				</tbody>
					</table>
	<div class="t_bar">工作经历</div>
	<table  id="tblWork" cellpadding="0" class="table01 t_css" width="100%" border="0" cellpadding="0" style="*border-bottom: #a1c0dc 1px solid;">
			<thead >
					<tr style="border:1px solid #B7D1E6">
						<th class="TblHead" align="center"  width="5%">序号</th>
						<th class="TblHead" align="center"  width="21%">国家</th> 
						<th class="TblHead" align="center"  width="22%">单位</th> 
						<th class="TblHead" align="center"  width="21%">职务</th> 
						<th class="TblHead" align="center"  width="13%">起始时间</th>
						<th class="TblHead" align="center"  width="13%">结束时间</th>
					</tr>
			</thead>
			<tbody id="tab">
					<c:set value="0" var="index" scope="page"/>
					<x:forEach select="$xmlData/data/works/work" var="work">
					
					<c:choose>
						<c:when test="${index<10}" ><c:set value="0" var="flag" scope="page"/></c:when>
						<c:otherwise><c:set value="" var="flag" scope="page"/></c:otherwise>
					</c:choose>
					<tr >
						<td align="center">
							<span   name="works/work[${flag}${index}]@seq_no" ><x:out select="$work/@seq_no"/></span> 
						</td>
						<td align="center">
							<x:out select="$work/country"/>
						</td>
						<td align="center">
							<x:out select="$work/unit"/>
						</td>
						<td align="center">
							<x:out select="$work/position"/>
						</td>
						<td align="center">
							<x:out select="$work/start_date_value"/>年<x:out select="$work/start_date_month_value"/>月</td> 
						<td align="center">
							<x:out select="$work/end_date_value"/>年<x:out select="$work/end_date_month_value"/>月
						</td>
					</tr>
					<c:set value="${index+1}" var="index" scope="page"/>
					</x:forEach>
				</tbody>

<table class="t_css" width="100%" border="0" cellpadding="0" id="basicInfo_2" cellspacing="2">
	<tr>
		<td   colspan="4" class="t_bar2">（二）企业基本情况
<input type="hidden" name="organizations/organization[0]/sequence_no" value="1" >
<input type="hidden" name="organizations/organization[0]@submit_org" value="1" >
<input type="hidden" name="organizations/organization[0]/org_code" value="<x:out select="$xmlData/data/organizations/organization[@submit_org=1]/org_code"/>" ></td>
	</tr>
	<tr>
		<td width="20%" align="right">企业名称：</td>
		<td colspan="3">&nbsp;<span name="organizations/organization[0]/org_name"><x:out select="$xmlData/data/organizations/organization[@submit_org='1']/org_name" /></span></td>
	</tr>
	<tr>
		<td width="20%" align="right">组织机构代码：</td>
		<td width="30%">&nbsp;<span name="organizations/organization[0]/org_no"><x:out select="$xmlData/data/organizations/organization[@submit_org='1']/org_no" /></span></td>
		<td width="20%" align="right">法定代表人：</td>
		<td width="30%">&nbsp;<span name="organizations/cname"><x:out select="$xmlData/data/organizations/cname"/></span></td>
	</tr>
	<tr>
		<td width="20%" align="right">住所：</td>
		<td >&nbsp;<x:out select="$xmlData/data/organizations/place"/></td>
		<td width="20%" align="right">所在地区：</td>
		<td >&nbsp;<span name="organizations/organization[0]/area_name"><x:out select="$xmlData/data/organizations/organization[@submit_org='1']/area_name" /></span></td>
	</tr>
	<tr>
		<td width="20%" align="right">企业性质：</td>
		<td >&nbsp;<span name="organizations/organization[0]/nature_name"><x:out select="$xmlData/data/organizations/organization[@submit_org='1']/nature_name" /></span></td>
		<td width="20%" align="right">所属行业：</td>
		<td >&nbsp;<span name="organizations/organization[0]/belong_industry_name"><x:out select="$xmlData/data/organizations/organization[@submit_org='1']/belong_industry_name" /></span></td>
	</tr>
	<tr>
		<td width="20%" align="right">成立时间：</td>
		<td >&nbsp;<span name="organizations/organization[0]/registe_date"><x:out select="$xmlData/data/organizations/organization[@submit_org='1']/registe_date" /></span></td>
		<td width="20%" align="right">注册资金：</td>
		<td >&nbsp;<x:out select="$xmlData/data/organizations/organization[@submit_org='1']/registe_fund" /></td>
	</tr>
	<tr>
		<td width="20%" align="right">注册资本入资方式：</td>
		<td >
		<x:out select="$xmlData/data/organizations/registered_type_name" /></td>
		<td width="20%" align="right">所占比例：</td>
		<td >&nbsp;<x:out select="$xmlData/data/organizations/registered_rate"/>%</td>
	</tr>
	<tr>
		<td width="20%" align="right">控股股东类型：</td>
		<td >
		<x:out select="$xmlData/data/organizations/shareholder_type_name" />：<x:out select="$xmlData/data/organizations/ziranren_type_name" /><x:out select="$xmlData/data/organizations/faren_type_name" /></td>
		<td width="20%" align="right">控股比例：</td>
		<td >&nbsp;<x:out select="$xmlData/data/organizations/holding_rate"/>%</td>
	</tr>
	<tr>
		<td width="20%" align="right">上市公司参股：</td>
		<td >
		<x:out select="$xmlData/data/organizations/participation_name" /></td>
		<td width="20%" align="right">参股比例：</td>
		<td >&nbsp;<x:out select="$xmlData/data/organizations/participation_rate"/>%</td>
	</tr>
	<tr>
		<td width="20%" align="right">投资机构参股：</td>
		<td >
		<x:out select="$xmlData/data/organizations/investment_name" /></td>
		<td width="20%" align="right">参股比例：</td>
		<td >&nbsp;<x:out select="$xmlData/data/organizations/investment_rate"/>%</td>
	</tr>
	<tr>
		<td width="20%" align="right">是否获得过投资：</td>
		<td >
		<x:out select="$xmlData/data/organizations/investment_own_name" /></td>
		<td width="20%" align="right">已获得投资类型：</td>
		<td >&nbsp;<x:out select="$xmlData/data/organizations/investment_own_rate"/></td>
	</tr>
	<tr>
		<td width="20%" align="right">已获得投资规模（万元）：</td>
		<td colspan="3">&nbsp;<x:out select="$xmlData/data/organizations/investment_scale"/></td>
	</tr>
	<tr>
		<td width="20%" align="right">近两年是否有融资需求：</td>
		<td >
		<x:out select="$xmlData/data/organizations/financing_name" /></td>
		<td width="20%" align="right">拟融资规模：</td>
		<td >
		<x:out select="$xmlData/data/organizations/financing_scale_name" /></td>
	</tr>
	<tr>
	<td width="20%" align="right">联系人姓名：</td>
	<td >&nbsp;<x:out select="$xmlData/data/organizations/contact_psn_name"/></td>
	<td width="20%" align="right">联系人电话：</td>
	<td >&nbsp;<x:out select="$xmlData/data/organizations/contact_psn_tel"/></td>
	</tr>
	<tr>
	<td width="20%" align="right">联系人传真：</td>
	<td >&nbsp;<x:out select="$xmlData/data/organizations/contact_psn_fax"/></td>
	<td width="20%" align="right">联系人手机：</td>
	<td >&nbsp;<x:out select="$xmlData/data/organizations/contact_psn_mobile"/></td>
	</tr>
	<tr>
	<td width="20%" align="right">联系人电子邮箱：</td>
	<td colspan="3">&nbsp;<x:out select="$xmlData/data/organizations/contact_psn_email"/></td>
	</tr>
	<tr>
		<td width="20%" align="right">通讯地址：</td>
		<td >&nbsp;<span name="organizations/organization[0]/address"><x:out select="$xmlData/data/organizations/organization[@submit_org='1']/address" /></span></td>
		<td width="20%" align="right">邮  编：</td>
		<td >&nbsp;<span name="organizations/organization[0]/zip_code"><x:out select="$xmlData/data/organizations/organization[@submit_org='1']/zip_code" /></span></td>
	</tr>
	<tr>
		<td width="20%" align="right">职工总数：</td>
		<td >&nbsp;<span name="organization_persons/people_count_total" id="people_count_total"><x:out select="$xmlData/data/organization_persons/people_count_total"/>人</span></td>
		<td width="20%" align="right">研发人员总数：</td>
		<td >&nbsp;<span name="organization_persons/job_yanfa" id="job_yanfa"><x:out select="$xmlData/data/organization_persons/job_yanfa"/></span>人</td>
	</tr>
	<tr>
		<td width="20%" align="right">研发人员占职工总数百分比：</td>
		<td colspan="3">&nbsp;<span name="organization_persons/people_rate" id="people_rate"><x:out select="$xmlData/data/organization_persons/people_rate"/></span>%</td>
	</tr>
	<tr>
		<td width="20%" align="right">创业项目技术来源：</td>
		<td >
		<x:out select="$xmlData/data/organizations/pioneering_name" /></td>
		<td width="20%" align="right">创业项目所属技术领域：</td>
		<td >
		<x:out select="$xmlData/data/organizations/pioneering_field_name" /></td>
	</tr>
	<tr>
		<td width="20%" align="right">发明专利：</td>
		<td >&nbsp;<span name="knowledge/patent/authorize_invent" id="people_count_total"><x:out select="$xmlData/data/knowledge/patent/authorize_invent"/></span>项</td>
		<td width="20%" align="right">软件著作权：</td>
		<td >&nbsp;<span name="knowledge/right/soft_right" id="job_yanfa"><x:out select="$xmlData/data/knowledge/right/soft_right"/>项</span></td>
	</tr>
	<tr>
	   <td align="right">创业项目核心技术所属学科：</td>
       <td  colspan="3">
          	<x:out select="$xmlData/data/proposal/subject_name" />
       </td>
	</tr>
	<c:set var="current_year"><x:out select="$xmlData/data/proposal/current_year" /></c:set>
	<tr align="center">
	<td>&nbsp;</td>
	<td>${current_year -3}</td>
	<td>${current_year -2}</td>
	<td>${current_year -1}</td>
	</tr>
	<tr align="center">
	<td align="right">企业总资产（万元）：<input type="hidden" name="finances/finance[1]@sequence_no" value="2" />
	<input type="hidden" name="finances/finance[2]@sequence_no" value="3" />
	<input type="hidden" name="finances/finance[4]@sequence_no" value="5" /></td>
	<td><span name="finances/finance[1]/assets"><x:out select="$xmlData/data/finances/finance[@sequence_no=2]/assets" /></span></td>
	<td><span name="finances/finance[2]/assets"><x:out select="$xmlData/data/finances/finance[@sequence_no=3]/assets" /></span></td>
	<td><span name="finances/finance[4]/assets"><x:out select="$xmlData/data/finances/finance[@sequence_no=5]/assets" /></span></td>
	</tr>
	<tr align="center">
	<td align="right">企业净资产（万元）：</td>
	<td><span name="finances/finance[1]/assets_fixed"><x:out select="$xmlData/data/finances/finance[@sequence_no=2]/assets_fixed" /></span></td>
	<td><span name="finances/finance[2]/assets_fixed"><x:out select="$xmlData/data/finances/finance[@sequence_no=3]/assets_fixed" /></span></td>
	<td><span name="finances/finance[4]/assets_fixed"><x:out select="$xmlData/data/finances/finance[@sequence_no=5]/assets_fixed" /></span></td>
	</tr>
	<tr align="center">
	<td align="right">毛利率（%）：</td>
	<td><x:out select="$xmlData/data/finances/finance[@sequence_no=2]/gross_rate" />%</td>
	<td><x:out select="$xmlData/data/finances/finance[@sequence_no=3]/gross_rate" />%</td>
	<td><x:out select="$xmlData/data/finances/finance[@sequence_no=5]/gross_rate" />%</td>
	</tr>
	<tr align="center">
	<td align="right">企业年度总收入（万元）：</td>
	<td><span name="finances/finance[1]/income"><x:out select="$xmlData/data/finances/finance[@sequence_no=2]/income" /></span></td>
	<td><span name="finances/finance[2]/income"><x:out select="$xmlData/data/finances/finance[@sequence_no=3]/income" /></span></td>
	<td><span name="finances/finance[4]/income"><x:out select="$xmlData/data/finances/finance[@sequence_no=5]/income" /></span></td>
	</tr>
	<tr align="center">
	<td align="right">企业年度净利润（万元）：</td>
	<td><span name="finances/finance[1]/proft"><x:out select="$xmlData/data/finances/finance[@sequence_no=2]/proft" /></span></td>
	<td><span name="finances/finance[2]/proft"><x:out select="$xmlData/data/finances/finance[@sequence_no=3]/proft" /></span></td>
	<td><span name="finances/finance[4]/proft"><x:out select="$xmlData/data/finances/finance[@sequence_no=5]/proft" /></span></td>
	</tr>
	<tr align="center">
	<td align="right">年度产品销售总额（万元）：</td>
	<td><span name="finances/finance[1]/sell_income"><x:out select="$xmlData/data/finances/finance[@sequence_no=2]/sell_income" /></span></td>
	<td><span name="finances/finance[2]/sell_income"><x:out select="$xmlData/data/finances/finance[@sequence_no=3]/sell_income" /></span></td>
	<td><span name="finances/finance[4]/sell_income"><x:out select="$xmlData/data/finances/finance[@sequence_no=5]/sell_income" /></span></td>
	</tr>
	<tr align="center">
	<td align="right">研发费用支出（万元）：</td>
	<td><span name="finances/finance[1]/yanfa_income"><x:out select="$xmlData/data/finances/finance[@sequence_no=2]/yanfa_income" /></span></td>
	<td><span name="finances/finance[2]/yanfa_income"><x:out select="$xmlData/data/finances/finance[@sequence_no=3]/yanfa_income" /></span></td>
	<td><span name="finances/finance[4]/yanfa_income"><x:out select="$xmlData/data/finances/finance[@sequence_no=5]/yanfa_income" /></span></td>
	</tr>
	<tr>
	    <td align="right" >企业特性：</td>
	    <td colspan="3"  >
		<x:out select="$xmlData/data/proposal/business_identity_name" />
	    </td>
	</tr>
</table>
<script type="text/javascript">
$(function(){
	setThisVal($("#tjrx_type_value").val());
	setStatusVal1($("#shareholder_type_value").val());
	setStatusVal($("#participation_value").val(),'participation_rate');
	setStatusVal($("#investment_value").val(),'investment_rate');
	setStatusVal($("#investment_own_value").val(),'investment_own_rate');
	setStatusVal($("#investment_own_value").val(),'investment_scale');
	setStatusValOther($("#financing_value").val(),'financing_scale');
	if($("#people_count_total").text() == '' || parseInt($("#people_count_total").text()) == 0){
		$("#people_rate").text(0);
	}else{
		$("#people_rate").text((parseInt($("#job_yanfa").text())*100/parseInt($("#people_count_total").text())).toFixed(2));
	}
	
});
function setThisVal(val){
	if(val == '05'){
		$("#tjrx_type_other").addClass("required");
		$("#tjrx_type_other").css("display","");
	}else{
		$("#tjrx_type_other").removeClass("required");
		$("#tjrx_type_other").css("display","none");
	}
}
function setStatusVal1(val){
	if(val == '01'){
		$("input[type='radio'][name='ziranren_type']").attr("disabled",false);
		$("input[type='radio'][name='faren_type']").attr("disabled",true);
		$("input[type='radio'][name='faren_type']").attr("checked",false);
		$("#faren_type_value").val("");
		$("#faren_type_name").val("");
		$("#faren_type_value").removeClass("required");
		$("#ziranren_type_value").addClass("required");
	}else if(val == '02'){
		$("input[type='radio'][name='faren_type']").attr("disabled",false);
		$("input[type='radio'][name='ziranren_type']").attr("disabled",true);
		$("input[type='radio'][name='ziranren_type']").attr("checked",false);
		$("#ziranren_type_value").val("");
		$("#ziranren_type_name").val("");
		$("#ziranren_type_value").removeClass("required");
		$("#faren_type").addClass("required");
	}
}
function setStatusVal(val,id){
	if(val == '01'){
		$("#"+id).addClass("required");
		$("#"+id).removeClass("gray");
		$("#"+id).attr("disabled",false);
	}else{
		$("#"+id).removeClass("required");
		$("#"+id).addClass("gray");
		$("#"+id).attr("disabled",true);
		$("#"+id).val("");
	}
}
function setStatusValOther(val,id){
	if(val == '01'){
		$("input[type='radio'][name='"+id+"']").attr("disabled",false);
		$("#"+id+"_value").addClass("required");
	}else{
		$("input[type='radio'][name='"+id+"']").attr("disabled",true);
		$("#"+id+"_value").removeClass("required");
		$("#"+id+"_value").val("");
	}
}

</script>
